﻿using Entity.Models;
using Entity.Models.BaseEntitys;
using System;
using System.Collections.Generic;
using System.Text;

namespace IDAL.IBase
{

    /// <summary>
    /// 包含删除时间的DAL接口基类
    /// </summary>
    public interface IBaseDeleteEntity<T> : IBaseEntity<T> where T : BaseDeleteEntity
    {
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        T getByEntityId(string Id);

        /// <summary>
        /// 软删除
        /// </summary>
        /// <param name="Id">id</param>
        /// <returns></returns>
        int SoftDalateEntity(string Id);
    }
}
